﻿#ifndef OBSERVER_H
#define OBSERVER_H

#include <QString>
#include <memory>

using namespace std;

class Subject;

class Observer
{
protected:
    QString name;
    shared_ptr<Subject> sub;
public:
    Observer(QString name, shared_ptr<Subject> sub);
    virtual void Update() = 0;
};

#endif // OBSERVER_H
